-- GENERATED SPELL FOR [Ironspine Chomper] --


function spell0_21816(pUnit, Event) --@Chomp,n/a--
pUnit:FullCastSpellOnTarget(32906,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21816', 616, 1)
end

function Sorts_21816(pUnit, Event)
local choix_sorts_21816 = math.random(0, 0)
if choix_sorts_21816 == 0 then
pUnit:RegisterEvent('spell0_21816', 1, 1)
end
end

function mob21816_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21816', math.random(1500, 3000), 1)
end

function mob21816_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21816_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21816_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21816, 1, 'mob21816_Action')
RegisterUnitEvent(21816, 2, 'mob21816_Leave')
RegisterUnitEvent(21816, 3, 'mob21816_Kill')
RegisterUnitEvent(21816, 4, 'mob21816_Die')
